package com.atguigu.eduService.mapper;

import com.atguigu.eduService.entity.EduCourse;
import com.atguigu.eduService.entity.frontvo.CourseWebVo;
import com.atguigu.eduService.entity.vo.CoursePublishVo;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

/**
 * <p>
 * 课程 Mapper 接口
 * </p>
 *
 * @author smday
 * @since 2020-07-27
 */
public interface EduCourseMapper extends BaseMapper<EduCourse> {

    /**
     * 根据课程id查询课程发布全信息
     * @param courseId 课程id
     * @return 课程发布全信息
     */
    CoursePublishVo getPublishCourseInfo(String courseId);

    /**
     * 根据课程id查询课程的详细信息
     * @param courseId 课程id
     */
    CourseWebVo getBaseCourseInfo(@Param("courseId") String courseId);
}
